﻿<div class="pageHeader">
	<form id="pagerForm" action="${ctx!}/admin/blog/list" onsubmit="return navTabSearch(this)" method="post">
	<input type="hidden" name="pageNum" value="${datas.pageNumber!}" />
	<input type="hidden" name="numPerPage" value="${datas.pageSize!}" />
	<div class="searchBar">
		<table class="searchContent">
			<tr>
				<td>标题：<input type="text" class="focus highlightText" name="blog.title" value="${blog.title!}" alt="标题 向后模糊查找" /></td>
				<td class="nowrap">
						添加日期：从 <input name="startTime" class="date textInput readonly valid" type="text" readonly="true" />
						- <input name="endTime" class="date textInput readonly valid" type="text" readonly="true" />
				</td>
				<td>
					<div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div>
				</td>
			</tr>
		</table>
	</div>
	</form>
</div>

<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="${ctx!}/admin/blog/toModifyPage" target="dialog" rel="modifyBlogDialogs" title="添加博客" mask="true" width="1000" height="595"><span>添加</span></a></li>
			<li class="line">line</li>
			<li><a class="delete" href="${ctx!}/admin/blog/delete" target="selectedTodo" rel="ids" title="确认删除？"><span>批量删除</span></a></li>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="112">
		<thead>
			<tr>
				<th width="40" align="center" ><input type="checkbox" class="checkboxCtrl" group="ids" /></th>
				<th width="40" align="center" >序号</th>
				<th align="left" >标题</th>
				<th width="100" align="left" >作者</th>
				<th width="80" align="center" >类型</th>
				<th width="40" align="center" >赞</th>
				<th width="40" align="center" >点击数</th>
				<th width="150" align="center" >发布日期</th>
				<th width="150" align="center" >编辑日期</th>
				<th width="80" align="center" >操作</th>
			</tr>
		</thead>
		<tbody>
			<#list datas.list as blog>
			<tr>
				<td><input type="checkbox" name="ids" value="${blog.id}" /></td>
				<td>${blog_index + (datas.pageSize * (datas.pageNumber - 1)) + 1}</td>
				<td>${blog.title!}</td>
				<td>${blog.user_name!}</td>
				<td><#if blog.type == '0'> <div>原创</div> <#else> <div><a href="${blog.share_url!}" target="_blank" >收藏</a></div> </#if></td>
				<td>${blog.support!}</td>
				<td>${blog.click_count!}</td>
				<td>${blog.create_time?string("yyyy-MM-dd")!}</td>
				<td><#if blog.update_time??>${blog.update_time?string("yyyy-MM-dd")!}</#if></td>
				<td>
					&nbsp;
					<a class="btnEdit" href="${ctx!}/admin/blog/toModifyPage/${blog.id}" target="dialog" title="编辑博客信息" rel="modifyBlogDialogs" mask="true" width="1000" height="595">编辑</a>
				</td>
			</tr>
			</#list>
		</tbody>
	</table>
	
	<div class="panelBar">
		<div class="pages">
			<span>显示</span> <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
				<option value="20"<#if datas.pageSize == 20> selected</#if>>20</option>
				<option value="50"<#if datas.pageSize == 50> selected</#if>>50</option>
				<option value="100"<#if datas.pageSize == 100> selected</#if>>100</option>
				<option value="200"<#if datas.pageSize == 200> selected</#if>>200</option>
			</select> <span>条，共<font style="color:red;font-weight:bold;">${datas.totalRow!}</font>条，共<font style="color:red;font-weight:bold;">${datas.totalPage!}</font>页&nbsp;&nbsp;&nbsp;&nbsp;</span>
		</div>
		<div class="pagination" targetType="navTab" totalCount="${datas.totalRow!}" numPerPage="${datas.pageSize!}" pageNumShown="10" currentPage="${datas.pageNumber!}"></div>
	</div>
</div>

